package com.supreme.commonentity.mysql.primary;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@NoArgsConstructor
@Data
@TableName(value = "sys_dept")
public class SysDept implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer sysDeptId;

    private Integer deptId;

    private String deptName;

    private Integer parentId;

    private String parentName;

    private Integer deptLevel;

    private String email;

    private String phone;

    private String leader;

    private String orderNum;

    private String storeCode;

    private String parentStoreCode;

    private String remark;

    private String status;

    private Integer syncType;

    private String ancestors;

    private String codeAncestors;

    private String createBy;

    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;
}
